package net.mingsoft.document.action.q;

import net.mingsoft.document.constant.FileConstant;
import org.apache.commons.lang3.StringUtils;

/**
 * @author gengfa
 * @date 22/01/14
 */
public class DirQuery {

    private String dirName;

    private String parentDirId;

    public boolean validate() {
        return StringUtils.isNotBlank(dirName) && !StringUtils.contains(dirName, FileConstant.DOT);
    }

    public String getDirName() {
        return dirName;
    }

    public void setDirName(String dirName) {
        this.dirName = dirName;
    }

    public String getParentDirId() {
        return parentDirId;
    }

    public void setParentDirId(String parentDirId) {
        this.parentDirId = parentDirId;
    }
}
